# -*- coding: utf-8 -*-
"""
 @Time    : 2021/1/21 下午6:13
 @Author  : tgy
 
"""
import re

text = 'Today is 11/27/2012. PyCon starts 3/13/2013.'

def test01():
    ...
    pattern = re.compile(r'(\d+/\d+/\d+)')
    print(pattern.subn(r'---\1---', text))


if __name__ == '__main__':
    ...
    test01()
